package top.maof.book.model;

import com.baomidou.mybatisplus.annotation.*;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import java.io.Serializable;
import java.util.Date;

@Data
@AllArgsConstructor
@NoArgsConstructor
@ToString
@TableName("chapter")
public class Chapter implements Serializable {
    @TableId(type = IdType.AUTO)
    private Long id;

    private String title;

    private String url;

    private String nextUrl;

    private String previousUrl;

    private Date updateDate;

    private Integer contentsId;

    private String content;

    @TableField(fill = FieldFill.INSERT)
    private Long insertTime;

    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Long updateTime;
}
